xquery version "1.0";
declare variable $titre as xs:string external;
declare variable $tag_filtre1 as xs:string external;

<html>
<head>
	<link rel='stylesheet' media='screen' type='text/css' href='../design.css' />
</head>
<body>

<div class="gauche">
<h1>{$titre}</h1>

    <ul>{
     for $a in distinct-values(doc("fic/citations.xml")//*[local-name() eq $tag_filtre1])
		 return <li><a href="frame2.html#{$a}" target="droit_haut">{$a}</a></li>
	}</ul>
</div>
			 
</body>
</html>